#sidebar
  .search_bar
    %form.search_form{method: :get, action: "/search"}
      %input.input-block-level.hidden{type: :hidden, value: ""}
      .search
        = text_field_tag "search", @search, id: "search_text", placeholder: "search book"
  .links
    %ul.links_list
      - if current_user.admin?
        %li.button= link_to t('.users_list'), users_path
      %li.button= link_to t('.books_list'), books_path
      %li.button= link_to t('.categories_list'), categories_path
      %li.button= link_to t('.transactions_list'), all_transactions_path
      %li
        %ul.transaction_links
          - Transaction::STATES.each do |key, value|
            %li.filter= link_to t(".#{key}"), all_transactions_path(status: value)

